﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FluentTests.Framework;
using NUnit.Framework;

namespace FluentTests.NUnit
{
    public class NUnitAssertionProvider : IAssertionProvider 
    {
        public void Fail()
        {
            Assert.Fail();
        }

        public void Fail(string message)
        {
            Assert.Fail(message);
        }

        public void IsNotNull(object obj)
        {
            Assert.IsNotNull(obj);
        }

        public void IsNull(object obj)
        {
            Assert.IsNull(obj);
        }

        public void Fail(string message, params object[] param)
        {
            Assert.Fail(message,param);
        }

        public void IsNotInstanceOfType(object actualValue, Type expectedType)
        {
            Assert.IsNotInstanceOf(expectedType, actualValue);
        }

        public void IsInstanceOfType(object actualValue, Type expectedType)
        {
            Assert.IsInstanceOf(expectedType,actualValue);
        }
    }
}
